package priv.menguer.strategy.controller;

import priv.menguer.strategy.service.Strategy;

/**
 * @Title Context.java
 * @description TODO
 * @time 2018年10月26日 上午11:42:17
 * @author menguer@126.com
 * @version 1.0
 */
public class Context {
	private Strategy strategy;

	public Context(Strategy strategy) {
		this.strategy = strategy;
	}

	public int executeStrategy(int num1, int num2) {
		return strategy.doOperation(num1, num2);
	}
}
